//引入组件
//配置路由的文件
import Login from "../pages/login.js"
import List from "../pages/admin/products/List.js"
import Index from "../pages/admin/dashboard/index.js"
import Edit from "../pages/admin/products/Editor.js"
import PageNotFound from "../pages/pagesnotfound.js"
import Notice from "../pages/admin/notice/Notice.js"
export const mainRoutes=[{
	path:"/login",
	component:Login
},{
	path:"/404",
	component:PageNotFound
}]

export const adminRoutes=[{
	path:"/admin/dashboard",
	component:Index,
	isShow: true,
	title: "看板",
	icon: "area-chart"
},{
	path:"/admin/products",
	component:List,
	exact:true,
	isShow: true,
	title: "商品管理",
	icon: "shop"
},{
	path:"/admin/products/edit/:id?",  //这里加入?代表id参数可选
	component:Edit,
	isShow: false
},{
	path:"/admin/notice",  //这里加入?代表id参数可选
	component:Notice,
	isShow: false
}]